<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/29 0029
 * Time: 16:03
 */

namespace app\home\controller;
use think\Db;

class Artclub extends Base
{
        public function index(){
            //广告
            $data_banner = Db::name('banner')->where('is_del=0 and is_show=1 and sign="pc" and type=8')->order('sort desc,id desc')->field('banner_img,out_link')->find();
            $this->assign('data_banner',$data_banner);
            //艺术会所
            $data = Db::name('yshs')->where('is_del=0 and is_show=1 and sign="pc"')->order('sort desc,id desc')->field('main_img,out_link,title')->select();
            $this->assign('data',$data);
            //场馆基地(顶部导航推荐)
            $data_cg = Db::name('psjd')->where('is_del=0 and is_show=1 and sign="pc" and is_recom=1')->order('sort desc,id desc')->select();
            $this->assign('data_cg',$data_cg);
            $this->assign('data_seo',getColumnseo(6));
            return $this->fetch();
        }


}